package com.sskj.hangqing.presenter;

import com.sskj.common.base.HttpData;
import com.sskj.hangqing.bean.SummaryBean;
import com.sskj.hangqing.ui.fragment.SummaryFragment;
import com.sskj.lib.http.CallBackOption;


public class SummaryFragmentPresenter extends BasePresenter<SummaryFragment> {

    public void getSummary(String code) {
        httpService.getSummary(code)
                .execute(new CallBackOption<HttpData<SummaryBean>>() {
                }.unLoadBind(mView)
                .execute(httpData-> mView.updateUI(httpData.getData())))
                ;
    }
}
